package com.gpzx.zx.module.home.ui.activity

import android.content.Context
import android.content.Intent
import android.os.Bundle
import com.gpzx.zx.R
import com.gpzx.zx.databinding.ActivityOrgInfoBinding
import com.gpzx.zx.module.home.frame.presenter.OrgInfoPresenter
import com.gpzx.zx.module.home.frame.view.OrgInfoView
import com.wkq.base.frame.activity.MvpBindingActivity

/**
 *
 * 作者:吴奎庆
 *
 * 时间:2020/7/4
 *
 * 用途:
 */


class OrgInfoActivity : MvpBindingActivity<OrgInfoView, OrgInfoPresenter,ActivityOrgInfoBinding>() {

    var orgId:String=""

    fun newInstance(context: Context, orgId: String) {
        var intnet = Intent(context, OrgInfoActivity().javaClass)
        intnet.putExtra("orgId", orgId)
        context.startActivity(intnet)
    }

    override fun getLayoutId(): Int {
        return R.layout.activity_org_info
    }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        orgId= intent.getStringExtra("orgId")
        mvpView.initView()
        getPresenter().getData(this,orgId)

    }

}